Auto merge of #3781 - alexcrichton:beta-backport, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 3 Mar 2017 19:21:26 +0000 (19:21 +0000)
committerbors <bors@rust-lang.org>
Fri, 3 Mar 2017 19:21:26 +0000 (19:21 +0000)
commitf9e54817e53c7b9845cc7c1ede4c11e4d3e42e36
treea2fd03b9c59d0cbacc2bbe247d345a7666f0c1ea
parent0bb804711f87c82aa03af7848dbfc460528b074c
parentf1c0d44ff0150591e7cedf37ef3d550c3872d408
Auto merge of #3781 - alexcrichton:beta-backport, r=alexcrichton

[backport] Fix deps with `cargo test --all` and doctests

This commit fixes `cargo test --all` with the way we ship libraries to `rustdoc
--test`. I'm... not entirely sure what the previous incarnation was doing but
the current organization is to interpret `compilation.libraries` as a mapping
from a package to the list of crates it needs to link to test.

This updates the support in `cargo_rustc/mod.rs` to create the map appropriately
and tweaks the loop in `cargo_test.rs` as well.

Closes rust-lang/rust#39879